home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: Nov 25 1998
- //
- // Description:
- // This procedure creates the help menu items.
- //
- // Arguments:
- // $object - is the name of the panel or window.
- // $menuParent - is the parent window.
- //
-
-
- global proc setPopUpHelpMode ( int $newMode)
- //
- // Description:
- // Simply set the state of the pop up help mode and
- // store in an optionVar for preference persistancy.
- //
- {
- help -popupMode $newMode;
- optionVar -iv popUpHelpMode $newMode;
- }
-
- global proc setHelpMenuState ( string $menu )
- //
- // Description simply set the state of this popup menu
- //
- {
- int $state = `help -q -popupMode`;
- menuItem -e -checkBox $state ($menu + "|popUpHelpState");
- }
-
- global proc doHelpMenuItems (string $object, string $menuParent)
- {
- global string $gMainHelpMenu;
-
- int $numOfMenuItemsBefore;
- int $numOfMenuItemsAfter;
-
- menuItem -label "Contents and Search..."
- -annotation "Contents and Search: Opens the online help in a browser"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "showHelp DocsHome";
- menuItem -label "Index..."
- -annotation "Index: Opens the online help index in a browser"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "showHelp DocsIndex";
-
- // Only add to the main window
- //
- if ($menuParent == "MayaWindow") {
- menuItem -divider true;
- if ( `about -evalVersion` ) {
- menuItem -label "Things You Can Do with Maya..."
- -annotation "Things You Can Do with Maya: Orientation to Maya"
- -enableCommandRepeat false
- -command "showHelp -docs \"overview_of_maya.htm\"";
-
- menuItem -label "Extra Learning Resources..."
- -annotation "Extra Learning Resources: Books, DVDs, online groups and more"
- -enableCommandRepeat false
- -command "showHelp -docs \"LearnMaya.html\"";
- }
-
- if (`about -windows` || `about -mac`) {
- menuItem -label "Learning Movies..."
- -annotation "Learning Movies: Shows movies demonstrating basic concepts"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "mayaLearningMoviesPage";
- }
-
- menuItem -label "Tutorials..."
- -annotation "Tutorials: Opens the Instant Maya tutorial in an HTML browser"
- -enableCommandRepeat false
- -command "showHelp -docs \"InstantMaya/index.html\"";
-
- if ( `about -evalVersion` ) {
- menuItem -label "What's New?"
- -annotation "What's New: Browse through the new features in this version"
- -enableCommandRepeat false
- -command "showHelp -docs \"WhatsNew/index.html\"";
- }
-
- // Web links
-
- menuItem -divider true;
-
- if ( `about -evalVersion` ) {
- string $buyMayaCommand = "";
- if (`about -macOS`) {
- $buyMayaCommand = "showHelp -absolute \"http://www.aliaswavefront.com/cgi-bin/products/info.cgi?SRC=mayaple_m_buy&VER=MPLEA050\"";
- } else if (`about -windows`) {
- $buyMayaCommand = "showHelp -absolute \"http://www.aliaswavefront.com/cgi-bin/products/info.cgi?SRC=mayaple_m_buy&VER=MPLEW050\"";
- }
- menuItem -label "Buy Maya..."
- -annotation "Buy Maya: Find out how you can buy Maya from the Alias|Wavefront web site"
- -enableCommandRepeat false
- -command $buyMayaCommand;
-
- menuItem -label "Maya Personal Learning Edition on the Web..."
- -annotation "Personal Learning Edition on the Web: Opens the Maya Personal Learning Edition web site"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "showHelp -absolute \"http://www.aliaswavefront.com/maya/ple/resource\"";
- }
- else {
- // Maya on the Web
- }
-
- menuItem -label "Maya Support Solutions..."
- -annotation "Maya Support Solutions: Shows the support options available from Alias|Wavefront"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "showHelp -absolute \"http://www.aliaswavefront.com/maya/support/\"";
-
- if ( `about -evalVersion` ) {
- menuItem -label "Alias on the Web..."
- -annotation "Alias on the Web: Opens the Alias web site"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "showHelp -absolute \"http://www.alias.com/\"";
- }
- else {
- menuItem -label "Alias|Wavefront on the Web..."
- -annotation "Alias|Wavefront on the Web: Opens the Alias|Wavefront web site"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "showHelp -absolute \"http://www.aliaswavefront.com/en/Home/homepage.html\"";
- }
-
- if ( !`about -evalVersion` ) {
- // Remove the following two Help Menu Items for PLE
- menuItem -label "Download Bonus Tools from the Web"
- -annotation "Download Bonus Tools from the Web: Opens the unsupported Bonus Tools web page"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "showHelp -absolute \"http://www.aliaswavefront.com/maya/bonustools\"";
-
- menuItem -label "Report a Problem..."
- -annotation "Report a Problem: Opens the bug reporting web page"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "showHelp -absolute \"http://aw.aliaswavefront.com/special/submit_a_relbug/cgi/product.cgi?product=Maya\"";
- }
- menuItem -divider true;
-
- menuItem -label "Find Menu..."
- -annotation "Find Menu: Finds menu items containing the words you type"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "findMenuItem";
-
- menuItem -label "Popup Help"
- -annotation "Popup Help: Toggles the captioned \"tips\" that display in Maya"
- -image "menuIconHelp.xpm"
- -enable true
- -checkBox (`optionVar -q popUpHelpMode`)
- -enableCommandRepeat false
- -command "setPopUpHelpMode #1"
- popUpHelpState;
- }
-
-
- // Context sensitive menu Items relative to each window.
- //
- menuItem -divider true;
- $numOfMenuItemsBefore = `menu -query -numberOfItems HelpMenu`;
- doContextHelpProc $object $menuParent;
- $numOfMenuItemsAfter = `menu -query -numberOfItems HelpMenu`;
-
- if ($numOfMenuItemsBefore != $numOfMenuItemsAfter)
- {
- menuItem -divider true;
- }
-
- menuItem -label "MEL Command Reference..."
- -annotation "MEL Command Reference: Opens the MEL command listing in an HTML browser"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "showHelp DocsMelCommands";
-
- menuItem -label "Node and Attribute Reference..."
- -annotation "Node and Attribute Reference: Opens the node and attribute listing in an HTML browser"
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "showHelp DocsNodes";
-
- menuItem -divider true;
- menuItem -label "If Help isn't working..."
- -annotation "Troubleshooting the Help Server: Opens the Help Server Troubleshooting Information in an HTML browser"
- -enableCommandRepeat false
- -command "showHelp -r \"troubleshooting.html\"";
-
- // Only add to the main window
- if (!`about -mac` && ($menuParent == "MayaWindow")) {
- string $label = "About Maya...";
- string $annotation = "About Maya: Displays version number and other product information for Maya";
- if (`about -evalVersion`)
- {
- $label = "About Maya Personal Learning Edition...";
- $annotation = "About Maya Personal Learning Edition: Displays version number and other product information for Maya Personal Learning Edition";
- }
- menuItem -divider true;
- menuItem -label $label
- -annotation $annotation
- -image "menuIconHelp.xpm"
- -enableCommandRepeat false
- -command "ProductInformation";
- }
- }
-